#include<algorithm>
#include<iostream>
using namespace std;
const int N=100005;int sum,n,t[N];
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(int i=1,ai;i<=n;i++)
        cin>>ai,t[ai]++;
    for(int i=1;i<N;i++)
    {
        sum-=t[i];
        if(sum<0)sum=0;
        sum+=t[i];
    }
    cout<<sum;
}